package com.todo.strategy.online.iface.request;

import com.todo.common.common.entity.CurrentUser;
import com.todo.common.common.entity.request.PageRequest;
import com.todo.common.utils.StringUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author azhebuxing
 * @date 2024/5/9 16:16
 * @description
 */
@Data
@Schema(title = "搜索策略入参", description = "搜索策略入参")
public class SearchStrategyParam extends PageRequest {

    private CurrentUser _user;

    @Schema(title = "搜索关键字", description = "搜索关键字")
    private String keyword;

    @Schema(title = "省份", description = "省份")
    private String province;

    @Schema(title = "城市", description = "城市")
    private String city;

    public boolean baseCheck() {
        if (StringUtils.isBlank(keyword)) {
            return false;
        }
        return true;
    }
}
